/**
 * @description 定义通用的状态数据管理器
 */
import { defineStore } from 'pinia'
import { initState } from './persiste'

let _initState = initState()
const useCommonStore = defineStore(
    'youlan-common',
    {
        state(): CommonStore{
            return {
                token: _initState.token || ''
            }
        }
    }
)
export default useCommonStore